<script> 


  function printSelection(node){

  var content=node.innerHTML
  var pwin=window.open('','print_content','width=700,height=800');

  pwin.document.open();
  pwin.document.write('<html><body onload="window.print()">'+content+'</body></html>');
  pwin.document.close();
 
  setTimeout(function(){pwin.close();},1000);

}
function get()
{
var payload = document.getElementById("divToPrint").innerHTML;
   document.getElementById("hidden").value = payload;
  
		}

</script>
            <div class="row-fluid">
		    <form action="<?php echo site_url('user/proposal/pdf') ?>" method="post"><input type="submit" value="PDF"/> <input type="hidden" id="hidden" name="hidden"> </form>
			<span id="back" class="span2"> <a href="<?php echo site_url('user/proposal') ?>"><i class="icon-backward"> </i> Back</a> </span>
			<a onclick="printSelection(document.getElementById('divToPrint'));return false"> <i class="icon-print"> </i></a><hr>
			